#include "Login.h"
#include "ui_Login.h"

Login::Login(QWidget *parent, AdminData* data) : QMainWindow(parent), ui(new Ui::Login)
{
    ui->setupUi(this);
    this->setWindowTitle("Distribution");
    this->data = data;
}

Login::~Login()
{
    delete ui;
}

void Login::on_toAdministrator_clicked()
{
    AdminWindow *w = new AdminWindow(this, data);
    w->show();
}

void Login::on_toInstructor_clicked()
{
    InstructorWindow *w = new InstructorWindow(this, data);
    w->show();
}

void Login::on_toChair_clicked()
{
    ChairWindow *w = new ChairWindow(this, data);
    w->show();
}

void Login::on_toLogin_clicked()
{
    MainLogin *w = new MainLogin(this, data);
    w->show();
}
